<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>BBDown Web UI</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/css/style.css">
    <style>
        body {
            min-height: 100vh;
            background-color: #f8f9fa;
        }
        
        .navbar {
            background-color: #fff !important;
            box-shadow: 0 2px 4px rgba(0,0,0,.08);
            padding: 1rem 0;
        }
        
        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 600;
            color: #1a73e8 !important;
        }
        
        .nav-link {
            color: #5f6368 !important;
            font-size: 1rem;
            padding: 0.5rem 1rem !important;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background-color: #f1f3f4;
            color: #1a73e8 !important;
        }
        
        .nav-link.active {
            background-color: #e8f0fe;
            color: #1a73e8 !important;
        }
        
        .container {
            max-width: 1200px;
            padding: 2rem;
        }

        .hero-section {
            text-align: center;
            padding: 4rem 0;
        }

        .hero-section h1 {
            font-size: 2.5rem;
            color: #202124;
            margin-bottom: 1rem;
        }

        .hero-section p {
            font-size: 1.2rem;
            color: #5f6368;
            margin-bottom: 2rem;
        }

        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .feature-card {
            background: #fff;
            border-radius: 12px;
            padding: 2rem;
            text-align: center;
            box-shadow: 0 2px 8px rgba(0,0,0,.08);
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,.12);
        }

        .feature-card h3 {
            color: #202124;
            font-size: 1.5rem;
            margin: 1rem 0;
        }

        .feature-card p {
            color: #5f6368;
            margin-bottom: 1.5rem;
        }

        .feature-icon {
            font-size: 2.5rem;
            color: #1a73e8;
            margin-bottom: 1rem;
        }

        .btn-feature {
            display: inline-block;
            padding: 0.75rem 1.5rem;
            background-color: #1a73e8;
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .btn-feature:hover {
            background-color: #1557b0;
            color: white;
            transform: translateY(-1px);
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-light">
        <div class="container">
            <a class="navbar-brand" href="/">BBDown Web UI</a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link active" href="/">首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/download">视频下载</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/cut">视频裁剪</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/cut-video">批量裁剪</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/settings">系统设置</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/task-list">任务信息</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="/log-list">日志信息</a>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container">
        <div class="hero-section">
            <h1>BBDown Web UI</h1>
            <p>一个强大的B站视频下载和裁剪工具</p>
        </div>

        <div class="feature-grid">
            <div class="feature-card">
                <div class="feature-icon">📥</div>
                <h3>视频下载</h3>
                <p>支持B站视频解析和下载，可选择清晰度，支持下载弹幕和字幕</p>
                <a href="/download" class="btn-feature">开始下载</a>
            </div>

            <div class="feature-card">
                <div class="feature-icon">✂️</div>
                <h3>视频裁剪</h3>
                <p>支持单个视频的精确裁剪，可自定义开始和结束时间</p>
                <a href="/cut" class="btn-feature">开始裁剪</a>
            </div>

            <div class="feature-card">
                <div class="feature-icon">📋</div>
                <h3>批量裁剪</h3>
                <p>支持多个视频的批量裁剪，提高工作效率</p>
                <a href="/cut-video" class="btn-feature">批量处理</a>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html> 